package top.jiangqiang.qyblog.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.jiangqiang.qyblog.core.base.entity.BaseEntity;

import java.io.Serial;

/**
 * <p>
 * 导航菜单
 * </p>
 *
 * @author JiangQiang
 * @since 2023-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("qy_nav")
@Schema(name = "导航", description = "")
public class Nav extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "导航栏名称")
    private String name;

    @Schema(description = "导航路径，也可以是完整的URL链接")
    private String path;

    @Schema(description = "简介")
    private String introduction;

    @Schema(description = "菜单元数据，设置一些数据给前端页面使用")
    private String metadata;

    @Schema(description = "是否隐藏，默认显示")
    private Boolean hide;

    @Schema(description = "打开方式 1新开窗口/0当前窗口")
    private Integer openStyle;

    @Schema(description = "父级导航ID，顶级导航为0")
    private Long parentId;

    @Schema(description = "菜单排序")
    private Integer sort;
}
